package com.koocloud.electroplatemanage.service;


import com.koocloud.electroplatemanage.common.pojo.ResponseTemplate;
import com.koocloud.electroplatemanage.pojo.Operate;

import java.util.List;

/**
 * @program:
 * @description:
 * @author: wjx
 * @create: 2020/11/18 17:35
 */
public interface OperateService {
    //通过pk查询一条记录 delete_flag = "1"
    ResponseTemplate selectByPk(String pk);
    //查询所有记录
    ResponseTemplate selectAllData(String page, String limit, Operate operate);
    //检查镀槽编号
    ResponseTemplate check(Operate operate);
    //插入镀槽信息
    ResponseTemplate insert(Operate operate);

    //批量插入
    ResponseTemplate batchInsert(List<Operate> listOperate);
    //逻辑删除
    ResponseTemplate delete(String pk, String deleteFlag);

    //批量删除
    ResponseTemplate batchDeleteByPks(List<String> listPks);
    //更新一条
    ResponseTemplate update(Operate operate);
}
